import request from '@/utils/request'

// 查询品牌列表
export function listScheme(query) {
  return request({
    url: '/goods/scheme',
    method: 'get',
    params: query
  })
}

// 查询品牌详细
export function getScheme(schemeId) {
  return request({
    url: '/goods/scheme/' + schemeId,
    method: 'get'
  })
}

// 新增品牌
export function addScheme(data) {
  return request({
    url: '/goods/scheme',
    method: 'post',
    data: data
  })
}

// 修改品牌
export function updateScheme(data) {
  return request({
    url: '/goods/scheme',
    method: 'put',
    data: data
  })
}

// 删除定时任务调度
export function delScheme(schemeIds) {
  return request({
    url: '/goods/scheme/' + schemeIds,
    method: 'delete'
  })
}

export default {
  list:listScheme,
  get:getScheme,
  add:addScheme,
  update:updateScheme,
  del:delScheme
}